from ronglian_sms_sdk import SmsSDK

accId = '2c94811c946f6bfb0196a44e33db68a9'
accToken = '2c301c0bc0094a009134d3bbd8c62ded'
appId = '2c94811c946f6bfb0196a44e358968b0'


def send_message(phone, code):
    sdk = SmsSDK(accId, accToken, appId)
    tid = '1'
    mobile = phone
    datas = (code,)
    resp = sdk.sendMessage(tid, mobile, datas)
    return resp
